//
//  ZSMenuItemsView.h
//  ZhuShou
//
//  Created by Dejun Liu on 15/10/29.
//  Copyright © 2015年 jw. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ZSMenuItem.h"
#import "ZSMenuItemButton.h"

typedef void(^ButtonAction)(ZSMenuItemButton *menuButton,ZSMenuItem *item);

@interface ZSMenuItemsView : UIView

/**
 *  存放ZSMenuItem数组
 */
@property (nonatomic,strong) NSMutableArray *items;

@property (nonatomic,copy) ButtonAction actionHandler;

/**
 *  如果屏幕尺寸变了，此方法用来适配button的位置
 */
- (void)setLayoutOfButtons;

- (instancetype)initWithFrame:(CGRect)frame withItems:(NSMutableArray *)items;

- (void)setSelectIndex:(NSInteger) index;
- (void)setSelectWithItem:(ZSMenuItemButton *)button;

@end
